//订单管理
import request from '@/utils/request'
//获取所有订单
//url: "/api/seller/order" post
export const reqSelectOrderList = (data)=>request({url:'/seller/order',method:'post',data});
//推进订单状态
//url: /api/seller/order/orderState/{orderId} post
export const reqUpdateOrder = (orderId)=>request({url:`/seller/order/orderState/${orderId}`,method:'post'});
//推进订单状态
//url: /api/seller/order/orderState/{orderId}/{distribution} post
export const reqUpdateOrderAndDistribution = (orderId,distribution)=>request({url:`/seller/order/orderState/${orderId}/${distribution}`,method:'post'});
//取消订单
//url: /api/seller/order/{orderId} post
export const reqDeleteOrder = (orderId)=>request({url:`/seller/order/${orderId}`,method:'post'});